package com.raccoon.sample;

import org.apache.log4j.Logger;

public class HelloLog4E {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(HelloLog4E.class);

	private void getStr() {
		if (logger.isDebugEnabled()) {
			logger.debug("getStr() - start"); //$NON-NLS-1$
		}

		try {
			String a = "s";

		} catch (Exception e) {
			logger.error("getStr()", e); //$NON-NLS-1$

			e.printStackTrace();
		}

		if (logger.isDebugEnabled()) {
			logger.debug("getStr() - end"); //$NON-NLS-1$
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (logger.isDebugEnabled()) {
			logger.debug("main(String[]) - start"); //$NON-NLS-1$
		}

		// TODO Auto-generated method stub
		System.out.println("hello log4e application");

		if (logger.isDebugEnabled()) {
			logger.debug("main(String[]) - end"); //$NON-NLS-1$
		}
	}

}
